﻿<!DOCTYPE html>
<html class="detailsHtml" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<title>安全警示室</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="icon" href="/frontEnd/images/favicon.ico">
		<link rel="stylesheet" type="text/css" href="/frontEnd/css/style.css" />
	</head>

    <body>
        <div class="boxCenter">
			<h1 class="title" style="border-bottom: 0;"><a href="javascript:history.back(-1);"><img src="/frontEnd/images/return.png"/></a> </h1>
			<div class="boxCenter box">
				<h1 class="title" id="caseTitle"></h1>
				<div id="rollBox1" style="height: 655px;">
					<div id="roll2" style="width: 86%">
						<div class="detailsPage" id="page1" style="width: 86%"></div>
						<div class="detailsPage" id="page2" style="width: 86%"></div>
					</div>
				</div>
			</div>
        </div>
        <script src="/frontEnd/js/jquery-2.1.4.min.js" type="text/javascript" charset="utf-8"></script>
		<script th:inline="javascript">
            var list = [[${caseManagement}]]
            var caseTitle = list.caseTitle;
            var caseInfo = list.caseInfo;
            $('#caseTitle').html(caseTitle).attr("class","title");
            $('#page1').html(caseInfo);
		</script>
		<script type="text/javascript">
            /*文字滚动*/
            var area1 = document.getElementById('rollBox1');
            var con1 = document.getElementById('page1');
            var con2 = document.getElementById('page2');

            var speed = 50;
            area1.scrollTop = 0;

            if(con1.offsetHeight>=area1.offsetHeight){
                con2.innerHTML = con1.innerHTML;
            }

            function scrollUp() {
                if(area1.scrollTop >= con1.offsetHeight) {
                    area1.scrollTop = 0;
                } else {
                    area1.scrollTop++; //向上滚动
                }
            }
            var myScroll = setInterval("scrollUp()", speed);
            area1.onmouseover = function() {
                clearInterval(myScroll);
                $("#rollBox1").css("overflow","auto");
            }
            area1.onmouseout = function() {
                clearInterval(myScroll);
                myScroll = setInterval("scrollUp()", speed);
                $("#rollBox1").css("overflow","hidden");
            }
        </script>

    </body>

</html>